# -*- coding : utf_8 -*-
"""
=======================================
Time : 2025/4/15 19:14
Author : 田霄汉
Email : 522989570@qq.com
File : combat_class27.py
Project : pandas_demo
Function : 复杂运算
=======================================
"""
import pandas as pd
from pandas import DataFrame
from config.setting import file_path
from utils.get_area import GetArea

combat27_path = file_path['excel_path'] + '/combat27.xlsx'

pd.options.display.max_columns = 999
rectangle: DataFrame = pd.read_excel(io=combat27_path,
                                     sheet_name='page1',
                                     skiprows=3,
                                     usecols='C:E')
rectangle['CA'] = \
    rectangle.apply(lambda x: GetArea().get_circumcircle_area(length=x['length'], width=x['width']), axis=1)

print(rectangle)
